<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>
	<!-- content starts -->
	<blockquote class="layui-elem-quote"><{$action}></blockquote>

	<!-- <fieldset class="layui-elem-field">
  		<legend>按条件搜索</legend>
  		<div class="layui-field-box">
			<form class="layui-form layui-form-pane1" method="post">
				<div class="layui-form-item">
			    	<div class="layui-inline">
			    		<input type="text" name="name" placeholder="分类名称" value="<{if $name}><{$name}><{/if}>" class="layui-input">
			    	</div>
			    	<div class="layui-inline">
			    		<button type="submit" class="layui-btn">搜索</button>
			    		<a class="layui-btn" href="/question_category/add"><i class="layui-icon"></i> 添加分类</a>
			    	</div>
		    	</div>

				
			</form>
  		</div>
	</fieldset> -->
	<form class="layui-form layui-form-pane1" method="post" delete_action="/question_category/delete">
		<table class="layui-table" lay-even lay-skin="row">
		  	<thead>
			  	<tr>
				  	<th>ID</th>
				  	<th>分类名称</th>
				  	<th>问答标题</th>
				  	<th>内容</th>
				  	<th>状态</th>
				  	<th>操作</th>
			  	</tr>
		  	</thead>   
		  	<tbody>
		  	<{foreach from=$qlist item=item}>
			  	<tr>
			  		<td class="center">
						<input type="checkbox" name="ids[]" value="<{$item['id']}>" title="<{$item['id']}>">
			  		</td>
			  		<td class="center"><{$item['category_name']}></td>
			  		<td class="center"><{$item['title']}></td>
			  		<td class="center"><{$item['content']}></td>
			  		<td class="center"><{if $item['status'] == 1}>正常<{else}>关闭<{/if}></td>
			  		<td class="center">
						<a class="layui-btn layui-btn-primary layui-btn-small delete_data" href="/question_topic/delete_qlist/<{$item['id']}>"><i class="layui-icon"></i></a>
					</td>
			  	</tr>
		  	<{/foreach}>
		  	<{if $qlist|count eq 0}>
		  		<tr>
			  		<td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="8">
						赞无数据！
					</td>
			  	</tr>
		  	<{/if}>
	  		</tbody>
	  	</table>
  	</form>
  	<div class="layui-box layui-laypage layui-laypage-default">
		<{$pagination}>
	</div>      
<{include file="public_html/footer.html"}>